
// 各项配置
var path = require('path');
var beRoot = path.resolve(__dirname, '..');
module.exports = { 
	cookieSession: { // session
	  name: 'oper',
	  keys: ["operation"]
	},
	db:{
		host: '', 
		user: '',
		password: '',
		database:'',
		port: ''
	},
	dir: { // 目录配置
	  root: beRoot,
	  controller: path.resolve(beRoot, './controller')
	},
	static: {
		prefix: 'http://act.cycangcdn.com/operation'
	},
	oper_page_static:'http://act.cycangcdn.com/operation/public/',
	api:{
		'shop.api': {
		  'host': 'http://api.internal.cycang.com/cyhub/web/shop.api.php',
		  'port': '80',
		  'public_key': 'b4908851944e5ac02bc10821b61bad12',
		  'private_key': 'cycang_shop_api_20150312',
		},
		'coupon.api': {
		  'host': 'http://api.internal.cycang.com/cyhub/web/coupon.api.php',
		  'port': '80',
		  'public_key': 'a78dd8934314d595f0938d7a1da093ba',
		  'private_key': 'cycang_coupon_api_20150525',
		},
	},
	user:{
		name:'cycangoper',
		password:'comeonbb!@#' // 密码
	},
	ips:[
		'http://192.168.0.169:8088'
	],
	// user:{
	// 	name:'terry',
	// 	password:'123' // 密码
	// },
	exceptFolder: 'except', // model 和 controller 中read dir排除的目录名称
	//redis配置
	'redis': {
	    //服务器A
	    'redis_a': {
	        'host' : process.env.CYCANG_REDIS_A_HOST,
	        'port' : process.env.CYCANG_REDIS_A_PORT,
	        'database': process.env.CYCANG_REDIS_A_DATABASE,
	        'db': 0,
	        'password': process.env.CYCANG_REDIS_A_PWD,
	    },
	},
	cdn:{
		dl:{
			captcha:'436bd734',
			url:'http://push.dnion.com/cdnUrlPush.do'
		}
	},
	upload:{
		locationPath:path.resolve(beRoot, './public/upload')
	}
}